package cn.wink.springcloud.controller;

import cn.wink.springcloud.service.PaymentFeignService;
import cn.wink.springcloud.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xw
 * @date 2020-05-16 23:32
 */
@Slf4j
@RestController
@RequestMapping("/order")
public class OrderFeignController {

    @Autowired
    private PaymentFeignService paymentFeignService;

    @GetMapping("/get/{id}")
    public Result get(@PathVariable("id") Long id){
        return paymentFeignService.getOne(id);
    }
}
